package com.qust.agreement.message;

import com.qust.agreement.Enums.InstructionEnum;
import com.qust.agreement.Enums.SerializationEnum;
import com.qust.agreement.Message;

public class AlgorithmicResourceCatchUpMessage extends Message {
    public AlgorithmicResourceCatchUpMessage(Boolean flag){
        this.instruction = InstructionEnum.algorithmicResourceCatchUp.getCode();
        this.serialization = SerializationEnum.string.getCode();
        this.context = flag.toString();
    }

    public AlgorithmicResourceCatchUpMessage(AlgorithmicResourceCatchUpContext context){
        this.instruction = InstructionEnum.resourceCatchUp.getCode();
        this.serialization = SerializationEnum.json.getCode();
        this.context = context;
    }
}
